﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="judges.aspx.cs" Inherits="lgweb.lawyer.judges" %>

<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/lawyer/Menu.ascx" tagname="Menu" tagprefix="uc3" %>
<%@ Register src="~/control/lawyer/tag.ascx" tagname="tag" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>约见法官 案件详情页 - 律师通道 - 深圳市龙岗区人民法院网站</title>
    <meta content="龙岗区人民法院,深圳市龙岗区人民法院网站" name="keywords" />
    <meta content="龙岗区人民法院,深圳市龙岗区人民法院网站" name="description" />
    <link href="/favicon.ico" type="image/x-icon" rel="Bookmark" />
    <link href="/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/css/user/user.css" rel="stylesheet" type="text/css" />
    <script src="/js/common/base.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="g_body">
        <uc1:header ID="header1" runat="server" />
        <div class="g_content">
            <div class="g_d231">
                <uc3:Menu ID="Menu1" runat="server" />
            </div>
            <div class="g_d708r">
                <div class="g_box708">
                    <div class="s_title">当前位置：<a href="/index.aspx">首页</a> > <a href="/lawyer/index.aspx">律师通道</a> > <span id="spAH" runat="server"></span> 约见法官</div>
                    <div class="s_box">
                        <div class="g-tags w670">
                            <uc5:tag ID="tag1" runat="server" TagIndex="4" />
                            <div class="g-tags-white"></div>
                        </div>
                        <table cellpadding="0" cellspacing="0" class="g_grid w670 clear">
                            <tr>
                                <th width="200">法官</th>
                                <th width="120">申请时间</th>
                                <th width="120">约见状态</th>
                                <th width="120">约见时间</th>
                                <th width="60">操作</th>
                            </tr>
                            <asp:Repeater runat="Server" ID="rptYYFGList">
                                <ItemTemplate>
                                    <tr class="<%# Container.ItemIndex%2==0?"bg":"" %>">
                                        <td align="center"><%#Eval("FG")%></td>
                                        <td align="center"><%#Convert.ToDateTime(Eval("SQRQ")).ToString("yyyy-MM-dd HH:mm")%></td>
                                        <td align="center"><%#Eval("YYZT").ToString() == "0" ? "等待约见" : Eval("YYZT").ToString() == "1" ? "约见完成" : "不约见"%></td>
                                        <td align="center"><%#Convert.ToDateTime(Eval("YYSJ")).ToString("yyyy-MM-dd HH:mm")%></td>
                                        <td align="center"><a href=""><%# Eval("YYZT").ToString() == "0" ? "取消" : ""%></a></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr>
                                <td align="center">刘孟德</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center">等待约见</td>
                                <td align="center"></td>
                                <td align="center"><a href="">取消</a></td>
                            </tr>
                            <tr class="bg">
                                <td align="center">刘孟德</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center">等待约见</td>
                                <td align="center"><span class="red">2011-07-04 09:10</span></td>
                                <td align="center"><a href="">取消</a></td>
                            </tr>
                            <tr>
                                <td align="center">刘孟德</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center">约见完成</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center"></td>
                            </tr>
                            <tr class="bg">
                                <td align="center">刘孟德</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center">约见完成</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center"></td>
                            </tr>
                            <tr>
                                <td align="center">刘孟德</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center">约见完成</td>
                                <td align="center">2011-07-04 09:10</td>
                                <td align="center"></td>
                            </tr>--%>
                        </table>
                        
                        <div class="g-hspace"></div>
                        
                        <div id="btn_judges">
                            <input type="button" value="申请约见法官" onclick="app_judges(1);" />
                        </div>
                        <div class="g-hspace20"></div>
                        <div class="message none" id="message_judges" runat="server">
                            您已成功申请约见法官，法院将审核你的约见申请并安排约见时间。
                        </div>
                        <div id="app_judges" class="none" runat="server">
                            <div class="g-tags w650">
                            <ul class="left">
                                <li class="current">申请约见法官</li>
                            </ul>
                            <div class="g-tags-white"></div>
                        </div>
                            <div class="judges w648">
                                <ul>
                                <li class="label">案号：</li>
                                <li id="liAH" runat="server"></li>
                            </ul>
                                <ul>
                                <li class="label">法官：</li>
                                <li id="liCBR" runat="server"></li>
                            </ul>
                                <ul>
                                <li class="label">温馨提示：</li>
                                <li>请您选择能前来法院的时间段，以便法官从中确定约见时间。</li>
                            </ul>
                                <ul>
                                <li style="text-align:right;width:600px;"><span>全选</span><span>反选</span><span>重置</span></li>
                            </ul>
                                <table cellpadding="0" cellspacing="0" class="g_grid clear">
                                    <tr>
                                        <th width="120">约见时间</th>
                                        <th width="120">星期</th>
                                        <th width="180">上午(9:00~12:00)</th>
                                        <th width="180">下午(14:00~18:00)</th>
                                    </tr>
                                    <asp:Repeater runat="Server" ID="rptDateWeek">
                                        <ItemTemplate>
                                            <tr class="<%# Container.ItemIndex%2==0?"bg":"" %>">
                                                <td align="center"><%#Eval("Date")%></td>
                                                <td align="center"><%#Eval("Week")%></td>
                                                <td align="center"><input type="checkbox" value="<%#Eval("Date")%>" name="chksw" /></td>
                                                <td align="center"><input type="checkbox" value="<%#Eval("Date")%>" name="chkxw" /></td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                <%--<tr>
                                    <td align="center">2011-07-04</td>
                                    <td align="center">星期一</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr class="bg">
                                    <td align="center">2011-07-05</td>
                                    <td align="center">星期二</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr>
                                    <td align="center">2011-07-06</td>
                                    <td align="center">星期三</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr class="bg">
                                    <td align="center">2011-07-07</td>
                                    <td align="center">星期四</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr>
                                    <td align="center">2011-07-08</td>
                                    <td align="center">星期五</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr>
                                    <td align="center">2011-07-11</td>
                                    <td align="center">星期一</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr class="bg">
                                    <td align="center">2011-07-12</td>
                                    <td align="center">星期二</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr>
                                    <td align="center">2011-07-13</td>
                                    <td align="center">星期三</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr class="bg">
                                    <td align="center">2011-07-14</td>
                                    <td align="center">星期四</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>
                                <tr>
                                    <td align="center">2011-07-15</td>
                                    <td align="center">星期五</td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                    <td align="center"><input type="checkbox" value="" /></td>
                                </tr>--%>
                            </table>
                                <ul>
                                <li class="label">备注：</li>
                                <li><textarea cols="50" rows="3" id="txtBZ" runat="server"></textarea></li>
                            </ul>
                                <ul>
                                <li class="label">&nbsp;</li>
                                <li class="red w456">如超过1个人的，在备注中写明其他的姓名和证件号码，否则当天其他人不可入内。</span></li>
                            </ul>
                                <ul>
                                <li class="label"><span class="none"><textarea id="txtSW" name="txtSW" runat="server"></textarea><textarea id="txtXW" name="txtXW" runat="server"></textarea></span></li>
                                <li class="w456"><asp:Button ID="Button1" runat="server" onclick="Button1_Click" OnClientClick="return SetTextArea();" Text="申请约见法官" /><input type="button" value="取消" class="mgl10 w40" onclick="app_judges(2);" /></li>
                            </ul>
                                <div class="g-hspace"><input type="hidden" id="hdnAH" value="" runat="server" /></div>
                            </div>
                        </div>
                    </div>
                    <div class="s_ft">
                    </div>
                </div>
            </div>
        </div>
        <uc2:footer ID="footer1" runat="server" />
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function app_judges(numer) {
        switch (numer) {
            case 1:
                document.getElementById("app_judges").className = "";
                document.getElementById("btn_judges").className = "none";
                document.getElementById("message_judges").className = "message none";
                break;
            case 2:
                document.getElementById("app_judges").className = "none";
                document.getElementById("btn_judges").className = "";
                document.getElementById("message_judges").className = "message none";
                break;
            case 3:
                document.getElementById("app_judges").className = "none";
                document.getElementById("btn_judges").className = "";
                document.getElementById("message_judges").className = "message";
                break;
            default:

                break;
        }
    }

    function SetTextArea() {
        var chksw = document.getElementsByName("chksw");
        var strSW = "";
        for (var i = 0; i < chksw.length; i++) {
            if (chksw[i].checked) {
                strSW += chksw[i].value + ",";
            }
        }
        document.getElementById("txtSW").value = strSW.substring(0, strSW.length - 1);

        var chkxw = document.getElementsByName("chkxw");
        var strXW = "";
        for (var i = 0; i < chksw.length; i++) {
            if (chksw[i].checked) {
                strXW += chksw[i].value + ",";
            }
        }
        document.getElementById("txtXW").value = strXW.substring(0,strXW.length-1);

        return true;
    }
</script>